
	<!-- IF not S_AVATARS_ENABLED -->
		<p class="block">{L_AVATAR_FEATURES_DISABLED}</p>
	<!-- ENDIF -->

	<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
	<dl>
		<dt><label>{L_CURRENT_IMAGE}:</label></dt>
		<dd><!-- IF AVATAR -->{AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF --><br />
		    <label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_AVATAR}</label></dd>
	</dl>
	<p class="explain">{L_AVATAR_EXPLAIN}</p>

	<!-- IF S_UPLOAD_AVATAR_FILE -->
		<dl>
			<dt><label for="uploadfile">{L_UPLOAD_AVATAR_FILE}:</label></dt>
			<dd><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" /><input type="file" name="uploadfile" id="uploadfile" class="inputbox autowidth" /></dd>
		</dl>
	<!-- ENDIF -->

	<!-- IF S_UPLOAD_AVATAR_URL -->
		<dl>
			<dt><label for="uploadurl">{L_UPLOAD_AVATAR_URL}:</label></dt>
			<dd><input type="text" name="uploadurl" id="uploadurl" value="{AVATAR_URL}" class="inputbox" /></dd>
		</dl>
		<p class="explain">{L_UPLOAD_AVATAR_URL_EXPLAIN}</p>
	<!-- ENDIF -->

	<!-- IF S_LINK_AVATAR -->
		<dl>
			<dt><label for="remotelink">{L_LINK_REMOTE_AVATAR}:</label></dt>
			<dd><input type="text" name="remotelink" id="remotelink" value="{AVATAR_REMOTE}" class="inputbox" /></dd>
		</dl>
		<p class="explain">{L_LINK_REMOTE_AVATAR_EXPLAIN}</p>
		<dl>
			<dt><label for="width">{L_LINK_REMOTE_SIZE}:</label></dt>
			<dd>
				<label for="width"><input type="text" name="width" id="width" size="3" style="width: 20px;" value="{AVATAR_WIDTH}" class="inputbox autowidth" /> {L_PIXEL}</label> &times;&nbsp; 
				<label for="height"><input type="text" name="height" id="height" size="3" style="width: 20px;" value="{AVATAR_HEIGHT}" class="inputbox autowidth" /> {L_PIXEL}</label>
			</dd>
		</dl>
		<p class="explain">{L_LINK_REMOTE_SIZE_EXPLAIN}</p>
	<!-- ENDIF -->
	</fieldset>

	<!-- IF S_IN_AVATAR_GALLERY -->

		<h3>{L_AVATAR_GALLERY}</h3>

		<fieldset>
			<label for="category">{L_AVATAR_CATEGORY}: <select name="category" id="category">{S_CAT_OPTIONS}</select></label>
			<input type="submit" value="{L_GO}" name="display_gallery" class="button2" />
			<input type="submit" name="cancel" value="{L_CANCEL}" class="button2" />
		</fieldset>

		<div id="gallery">
		<!-- BEGIN avatar_row --><!-- BEGIN avatar_column -->
		    <p style="text-align: center; float: left;">
    			<label for="av-{avatar_row.S_ROW_COUNT}-{avatar_row.avatar_column.S_ROW_COUNT}"><img src="{avatar_row.avatar_column.AVATAR_IMAGE}" alt="" /><br />
				<input type="radio" name="avatar_select" id="av-{avatar_row.S_ROW_COUNT}-{avatar_row.avatar_column.S_ROW_COUNT}" value="{avatar_row.avatar_column.AVATAR_FILE}" /></label>
            </p>
		<!-- END avatar_column --><!-- END avatar_row -->
		    <div class="clear"></div>
		</div>

	<!-- ENDIF -->
